package com.demo.handler;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.jfinal.handler.Handler;
import com.jfinal.render.Render;

public class HtmlHandler extends Handler{

	@Override
	public void handle(String s, HttpServletRequest request,
			HttpServletResponse response, boolean[] isHandled) {
		if(s.lastIndexOf(".html") != -1) {
          //  s = s.substring(0, s.indexOf(".html"));
        }
        nextHandler.handle(s, request, response, isHandled);
	}

}
